package com.pinxixi.api.brand;

import com.pinxixi.framework.domain.brand.Brand;
import com.pinxixi.framework.model.response.ListResponseResult;
import com.pinxixi.framework.model.response.QueryResponseResult;
import com.pinxixi.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value="品牌微服务API",description = "品牌微服务CRUD")
public interface BrandControllerApi {

    @ApiOperation("品牌列表接口")
    ListResponseResult<Brand> findAll();

    @ApiOperation("品牌分页、模糊接口")
    ListResponseResult<Brand> findPage(Integer page, Integer size, Brand brand);

    @ApiOperation("品牌查询品牌")
    QueryResponseResult<Brand> findOne(Long id);

    @ApiOperation("品牌添加、修改接口")
    QueryResponseResult<Brand> save(Brand brand);

    @ApiOperation("品牌删除接口")
    ResponseResult deleteById(Long id);

    @ApiOperation("品牌批量删除接口")
    ResponseResult deleteAll(Long[] ids);

}
